package ${basePackage}.web.api.${moduleName}.command;

import lombok.Data;

import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户接受前端传入的用于分页查询的参数
 * Date:${.now}
 * @author
 */
@Data
@ApiModel(value = "${className}分页查询操作参数")
public class ${className}PageCommand extends PageCommand implements Serializable{

<#list fields as field>
    /** ${field.remarks}*/
    @ApiModelProperty(value = "${field.remarks}", required = true)
    <#if field.fieldType == 'String'>
    @NotBlank(message = "${field.remarks}不能为空")
    @Size(max = ${field.length},message = "${field.remarks}不能超过${field.length}位")
    <#else>
    @NotNull(message = "${field.remarks}不能为空")
    </#if>
    private ${field.fieldType} ${field.fieldName};

</#list>

}